package com.example.statistic.controller;


import com.example.statistic.service.StatisticsDailyService;
import com.example.utils.Result;
import org.ehcache.core.spi.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 网站统计日数据 前端控制器
 * </p>
 *
 * @author testjava
 * @since 2020-07-23
 */
@CrossOrigin
@RestController
@RequestMapping("/statistic/sta")
public class StatisticsDailyController {
    @Autowired
    StatisticsDailyService statisticsDailyService;

    @PostMapping("/createNum")
    public Result createNum(){
        statisticsDailyService.createNum();
        return Result.ok();
    }


}

